package org.nobody.mallb2c.mallauth.feign;

import org.nobody.common.utils.R;
import org.nobody.mallb2c.mallauth.vo.SocialUser;
import org.nobody.mallb2c.mallauth.vo.UserLoginVo;
import org.nobody.mallb2c.mallauth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 3489309323@qq.com
 * @create 2020-09-17-18:50
 */
@FeignClient("mall-member")
public interface MemberFeignService {
  @PostMapping("/mallmember/member/regist")
  public R regist(@RequestBody UserRegistVo vo);

  @PostMapping("/mallmember/member/login")
  public R login(@RequestBody UserLoginVo vo);

  @PostMapping("/mallmember/member/oauth2/login")
  public R oauthLogin(@RequestBody SocialUser vo);
}
